/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package auditenergetic;

/**
 * CONSUMUL DE ENERGIE PENTRU INCALZIRE
 * @author 
 */
public class CEI {

    private double Qfh;    
    private double Th;
    private double Rhh;
    private double Rwh;
    public final double[] da = {0.09 , 0.029, 0.019};
    public final double[] di = {0.04 , 0.025, 0.015};

    
    private final double Qh = 204283.80;
    private final double N_em = 0.93;
    private final double Nc = 0.94;
    private final double Qd = 79492.81;

    public double Compute_Qem_str()
    {
        return ((1 - N_em)/N_em) * Qh;
    }
    public double Compute_Qemc()
    {
        return ((1 - Nc)/Nc) * Qh;
    }
    public double Compute_Qem()
    {
        return Compute_Qem_str() + Compute_Qemc();
    }
   
    public double ComputeTh()
    {
        return Th = Compute_Qem() + Qd;
    }
    public double ComputeRhh()
    {
        return Rhh;
    }
    public double ComputeRwh()
    {
        return Rwh;
    }
    public double Compute_Qfh()
    {
        return  Qfh = Qh + ComputeTh() - ComputeRhh() - ComputeRwh();
    }

}
